﻿package com.mod.data  {
    
    import com.calefk.core.Data;

	public class Config extends Data {
		
		// actives
		public var activeLog:Boolean;
		public var activeTrace:Boolean;
        public var appId:String;
        public var host:String;
		
		public function Config() { }
        
        // cuando termina de cargar el XML
        override public function initialize(document:*):void {
			var xml:XML = new XML(document);
            // save appId
            appId = xml.settings.attribute("appId");
            host = xml.settings.attribute("host");
			
            activeTrace = (String(xml.settings.attribute("activeTrace")) == "1");
			activeLog = (String(xml.settings.attribute("activeLog")) == "1");
        }
	}
}